﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BUIANHQUAN.OOP.Inheristace.PhuongTien
{
    public partial class ptGiaoThong : Form
    {
        public ptGiaoThong()
        {
            InitializeComponent();
        }
        private void ptGiaoThong_Load(object sender, EventArgs e)
        {
            XeDap xDap = new XeDap();
            XeMay xMay = new XeMay();
            OTo xOto = new OTo();
            XeTai xTai = new XeTai();

        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (cboChonXe.Text.Equals("Xe Máy"))
            {
                listBox1.Items.Add("Trạng thái xe: ");
                listBox1.Items.Add("");
            }
            else if (cboChonXe.Text.Equals("Xe Đạp"))
            {
                listBox1.Items.Add("");
                listBox1.Items.Add("");
            }
            else if (cboChonXe.Text.Equals("Xe Ôtô"))
            {
                listBox1.Items.Add("");
                listBox1.Items.Add("");
            }
            else
            {
                listBox1.Items.Add("");
                listBox1.Items.Add("");
            }
        }


    }
}
